Diagnostic and Debugging
Table Of Contents
Here are some notes and bullet-points about diagnostic and debugging. Note that this document is not comprehensive and will be updated on time to time.
db.serverStatus
Used to get the diagnostic information about server.
db.serverStatus().opcounters
: Number of operations after the server has started. Read more.db.serverStatus().connections
: Number of active and allowed connections with server. Read Moredb.currentOp()
: List Current Operations running in server. Read More- Users with
clusterMonitor
can usecurrentOp
.
- Users with
Misc Points
- Without mentioning
--auth
option inmongod
we can not enforce the roles. - You can check which flags are used to start mongod using following command
db.adminCommand( { getCmdLineOpts: 1 } )